import ZbRequest from '../index'

export const addSchool = (data) => ZbRequest.post('/school', data)
export const deleteSchool = (id) => ZbRequest.delete('/school/' + id, {})
export const updateSchool = (id, data) => ZbRequest.put('/school/' + id, data)
export const getSchool = (data) => ZbRequest.get('/school', data)
export const getSchoolDetail = (id) => ZbRequest.get('/school/' + id, {})

//  获取学校角色 input 里面的内容
export const getSchoolRole = (data) => ZbRequest.get('/school_role', data)